package model;

import annotion.Id;

import java.io.Serializable;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/23 0023 10:04
 */
public class Address implements Serializable {
    private int user_id;
    @Id
    private int id;
    private String shipping;
    private String name;
    private String phone;

    public Address(int id, int user_id, String shipping, String name, String phone) {
        this.id = id;
        this.user_id = user_id;
        this.shipping = shipping;
        this.name = name;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getShipping() {
        return shipping;
    }

    public void setShipping(String shipping) {
        this.shipping = shipping;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", shipping='" + shipping + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public Address(int user_id, String shipping, String name, String phone) {
        this.user_id = user_id;
        this.shipping = shipping;
        this.name = name;
        this.phone = phone;
    }

    public Address() {
    }
}
